to detect if a data frame has nan values

204

to detect if a data frame has nan values -

> df.isnull().any().any()
True

to detect if a data frame has nan values -

df.isnull().sum().sum()
5

Comments

Submit
0 Comments